@extends('Home.User.Common.layout')
@section('title')
    本月推荐排行榜_数据报告
@endsection
@section('content')
    <!--  content  -->
    <main class="common_content">
        <div class="container">
            <div class="ct_main">
                @include('Home.User.Data.data_menu')
                <ul class="nav-items1 nav-items2 w999" id="tab-content2">
                    <!--本月推荐排行榜-->
                    <li class="basic-sets active">
                        <form class="selector-head layui-form" method="post" action="{{route('ranking2')}}">
                            @csrf
                            <h2>本月推荐排行榜</h2>
                            <div class="rt">
                                <table class="date-picker">
                                    <thead>
                                    <tr>
                                        <th>
                                            <input type="text" placeholder="起始日期" class="span2" value="{{$between[0]}}" name="date1" id="date1">
                                        </th>
                                        <th>
                                            <input type="text" placeholder="截止日期" class="span2" value="{{$between[1]}}" name="date2" id="date2">
                                        </th>
                                    </tr>
                                    </thead>
                                </table>
                                <button class="layui-btn layui-btn-sm" lay-submit lay-filter="formSub"><i class="icon icon-search"></i></button>
                            </div>
                        </form>
                        <div class="layui-form basic-sets-ul">
                            <table class="layui-table">
                                <thead>
                                <tr>
                                    <th>排名</th>
                                    <th>团队</th>
                                    <th>员工</th>
                                    <th>HC总数</th>
                                    <th>推荐CV</th>
                                    <th>筛选通过</th>
                                </tr>
                                </thead>
                                <tbody>
                                @foreach($list as $k => $item)
                                    <tr>
                                        <td data-label="排名"> {{$k+1}} </td>
                                        <td data-label="团队"> {{$item['team_name']}} </td>
                                        <td data-label="员工"> {{$item['username']}} </td>
                                        <td data-label="HC总数"> {{$item['hc']}} </td>
                                        <td data-label="推荐CV"> {{$item['cv']}} </td>
                                        <td data-label="筛选通过"> {{$item['3count']}}</td>
                                    </tr>
                                @endforeach
                                </tbody>
                            </table>
                        </div>
                    </li>
                </ul>
            </div>
        </div>
    </main>
@endsection
@section('footer')
    @include('Home.User.Data.Ranking.ranking_fun')
@endsection